package chapter2.No2_3_volatile关键字.gSynchronized代码块有volatile同步的功能;

/**
 * Created by Administrator on 2016/11/16.
 */
public class ThreadA extends Thread {
    ServiceClass sc;

    public ThreadA(ServiceClass sc) {
        this.sc = sc;
    }

    @Override
    public void run() {
        sc.methodA();
    }
}
